/* 2026-09-11 20:43:35 [GPT-6] セッションターン数：[7] */
:root {
  color-scheme: light;
  --paper: #fff;
  --mist: #f5f7fa;
  --ink: #243247;
  --muted: #617087;
  --blue: #375e9b;
  --line: #dce3ed;
  --soft: #e9eff7;
  --caramel: #b37532;
  --danger: #a52d2d;
  font-family:
    -apple-system, BlinkMacSystemFont, "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--mist);
  font-synthesis: none;
}
/* 2026-09-12 00:39:00 [GPT-6] セッションターン数：[20] */
.favorite-toolbar {
  margin: 12px 0;
}
#favorite-toggle[aria-pressed="true"] {
  color: #86501e;
  background: #fff6e8;
}
.favorites-panel {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.favorites-panel summary {
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}
.favorites-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#favorites-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 300px;
  overflow-y: auto;
}
#favorites-list li {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 6px 0;
}
.favorite-open {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.favorite-open span {
  display: block;
  overflow-wrap: anywhere;
}
.favorite-remove {
  align-self: center;
  min-width: 44px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body:has(dialog[open]) {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 15px;
}
button {
  cursor: pointer;
  font-weight: 600;
}
/* 2026-09-28 00:10:00 [GPT-6] セッションターン数：[2] */
#invitation-id {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
#invitation-id:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button:hover:enabled {
  background: var(--soft);
}
button:disabled,
select:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 5.8vw, 34px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.015em;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.primary:hover:enabled {
  background: #284b80;
}
.app-header {
  width: min(100%, 1060px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  gap: 16px;
}
.brand {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.7px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caramel);
  align-self: flex-end;
  margin-bottom: 11px;
}
.header-note {
  font-size: 13px;
  color: var(--muted);
}
main {
  flex: 1;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 26px 30px 46px;
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  min-height: 535px;
  border-radius: 16px;
  overflow: hidden;
}
.login-intro {
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px 25px;
  gap: 26px;
}
.drive-picture {
  width: 200px;
  height: auto;
}
.intro-line {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.login-content {
  padding: 62px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 19px;
}
.login-content > .muted {
  font-size: 15px;
}
.google-button {
  min-height: 44px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}
.login-content .small {
  font-size: 12px;
}
.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.privacy-link {
  font-size: 12px;
}
.message {
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.message.error {
  color: var(--danger);
}
.home-page {
  max-width: 760px;
  margin: 0 auto;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.home-heading button {
  flex-shrink: 0;
}
.home-heading p {
  overflow-wrap: anywhere;
}
.account-details {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 25px;
}
.account-details summary {
  cursor: pointer;
  width: fit-content;
  padding: 3px 0;
  min-height: 44px;
}
.account-details p {
  overflow-wrap: anywhere;
}
.drive-picker {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}
.drive-picker label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.drive-picker select {
  width: 100%;
  min-width: 0;
  font-weight: 650;
  background: var(--paper);
  padding-right: 26px;
}
.folder-navigation {
  display: flex;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-bottom: 22px;
}
.folder-navigation .icon-button {
  margin-left: auto;
  min-width: 44px;
  font-size: 24px;
  padding: 0;
}
.folder-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.folder-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.folder-heading span {
  flex-shrink: 0;
}
.folder-path {
  font-size: 12px;
  margin: 4px 0 16px;
  overflow-wrap: anywhere;
}
.home-page > .message {
  margin-bottom: 16px;
}
.files {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.file-row {
  width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 13px;
  text-align: left;
  padding: 17px 6px;
  align-items: center;
  background: transparent;
  font-weight: 400;
}
.file-symbol {
  height: 43px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.3px;
  border: 1px solid #cbd7e8;
  background: #fff;
  border-radius: 5px;
  color: var(--blue);
}
.file-symbol.folder {
  background: #f4e1c7;
  border: 1px solid #dfc39b;
  color: #8b571c;
  font-size: 19px;
}
.file-name {
  font-size: 15px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}
.file-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.file-text {
  min-width: 0;
}
.file-arrow {
  color: #8793a5;
  font-size: 22px;
}
.paging {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.empty-state {
  text-align: center;
  padding: 38px 12px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.empty-state img {
  opacity: 0.85;
  margin-bottom: 4px;
}
.empty-state h2 {
  font-size: 21px;
}
.empty-state p {
  font-size: 14px;
  max-width: 340px;
  white-space: pre-line;
}
.empty-state button {
  margin-top: 8px;
}
.app-footer {
  width: min(100%, 1000px);
  padding: 18px 30px 24px;
  margin: auto auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.app-footer a {
  color: var(--muted);
}
.privacy-link,
.app-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.practice-notice {
  padding: 10px 18px;
  background: #fff1c5;
  color: #674b0c;
  font-size: 12px;
  text-align: center;
}
.file-type {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}
dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 44px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 14px 60px #2432472b;
}
dialog::backdrop {
  background: #24324766;
}
dialog h2 {
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
dialog dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  font-size: 13px;
  gap: 12px;
  margin: 0 0 22px;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}
dialog .primary {
  width: 100%;
  margin-top: 18px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}
.login-content #practice-login {
  width: 100%;
}
.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  padding: 30px;
  border-radius: 12px;
}
.privacy-page h2 {
  margin: 28px 0 10px;
}
.privacy-page p {
  margin: 13px 0;
}
.privacy-page h1 {
  font-size: 27px;
}
@media (max-width: 650px) {
  .app-header {
    padding: 20px 22px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 8px 22px 32px;
  }
  .login-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 0;
    background: transparent;
  }
  .login-intro {
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
    padding: 21px 0 31px;
    background: transparent;
  }
  .drive-picture {
    width: 108px;
  }
  .intro-line {
    font-size: 22px;
  }
  .login-content {
    padding: 30px 24px;
    background: var(--paper);
    border-radius: 14px;
    gap: 19px;
    align-items: stretch;
  }
  .login-content h1 {
    font-size: 25px;
  }
  .login-content > .muted {
    font-size: 14px;
  }
  .login-content > .message {
    min-height: 24px;
  }
  .login-actions:empty {
    display: none;
  }
  .google-button {
    max-width: 100%;
  }
  .home-heading h1 {
    font-size: 29px;
  }
  .home-heading button {
    font-size: 12px;
    padding-inline: 7px;
  }
  .app-footer {
    padding-inline: 22px;
  }
  .privacy-page {
    padding: 24px 20px;
  }
  .folder-navigation {
    gap: 0;
  }
  .folder-navigation .quiet {
    font-size: 13px;
    padding-inline: 10px;
  }
  .home-page .message {
    font-size: 13px;
  }
  dialog {
    padding: 28px 24px;
  }
}
@media (max-width: 360px) {
  .app-header {
    padding-inline: 16px;
  }
  main {
    padding-inline: 16px;
  }
  .login-intro {
    gap: 18px;
  }
  .drive-picture {
    width: 92px;
  }
  .intro-line {
    font-size: 20px;
  }
  .login-content {
    padding: 25px 18px;
  }
  .login-content h1 {
    font-size: 23px;
  }
  .file-row {
    gap: 10px;
  }
  .file-name {
    font-size: 14px;
  }
  .app-footer {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
